package com.jrx.mservices.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 配置中心客户端接口类
 *
 * @author zwg
 * @create 2018-03-07 17:54
 */
@RestController
@RequestMapping("config")
public class ConfigClientController {

    @Value("${params.from}")
    private String from;

    @RequestMapping("test")
    public String test(){
        return "from:"+from;
    }

}
